package vcp.gui.forms;

import javax.swing.JLabel;
import javax.swing.JTextField;

import javax.swing.JTextArea;
import javax.swing.JButton;

import vcp.gui.components.VCPPanel;


import javax.swing.JScrollPane;
import javax.swing.border.TitledBorder;

public class CustomerContactForm extends VCPPanel {
    
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int fromID;
	private int toID;
	private JTextField txtSubject;
	private JButton btnSend;
	private JTextArea txtMessage;
	
	/**
	 * Create the panel.
	 */
	public CustomerContactForm() {
		setBorder(new TitledBorder(null, "Customer Contact", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		setLayout(null);
		
		JLabel lblTo = new JLabel("To");
		lblTo.setBounds(12, 23, 94, 16);
		add(lblTo);
		
		JLabel lblSubject = new JLabel("Subject");
		lblSubject.setBounds(12, 56, 56, 16);
		add(lblSubject);
		
		txtSubject = new JTextField();
		txtSubject.setBounds(80, 52, 392, 22);
		add(txtSubject);
		txtSubject.setColumns(10);
		
		JLabel lblMessage = new JLabel("Message");
		lblMessage.setBounds(12, 85, 74, 16);
		add(lblMessage);
		
		txtMessage = new JTextArea();
		txtMessage.setBounds(80, 87, 358, 159);
		JScrollPane tscroll = new JScrollPane(txtMessage,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
	            JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
		tscroll.setBounds(80, 87, 392, 159);
		add(tscroll);
		
		btnSend = new JButton("send");
		btnSend.setBounds(375, 262, 97, 25);
		add(btnSend);

	}

	public int getFromID() {
		return fromID;
	}

	public void setFromID(int fromID) {
		this.fromID = fromID;
	}

	public int getToID() {
		return toID;
	}

	public void setToID(int toID) {
		this.toID = toID;
	}

	public JTextField getTxtSubject() {
		return txtSubject;
	}

	public void setTxtSubject(JTextField txtSubject) {
		this.txtSubject = txtSubject;
	}

	public JButton getBtnSend() {
		return btnSend;
	}

	public void setBtnSend(JButton btnSend) {
		this.btnSend = btnSend;
	}

	public JTextArea getTxtMessage() {
		return txtMessage;
	}

	public void setTxtMessage(JTextArea txtMessage) {
		this.txtMessage = txtMessage;
	}
}
